package com.jdk.learn.nio._05;


import org.junit.Test;

import java.io.IOException;
import java.util.Scanner;

/**
 * Created by ricky
 * on 2018/2/11.
 */
public class TestJunit{
//    @Before
    public void test2() {
        Scanner scanner = new Scanner(System.in);
            String str=scanner.next();
        System.out.print("-----------"+str);
    }
    @Test
    public  void test() {
        Scanner scanner = new Scanner(System.in);
        try {
            System.in.available();
        } catch (IOException e) {
            e.printStackTrace();
        }
        String str=scanner.next();
        System.out.print("-----------"+str);
    }

    public static void main(String[] args) {
        TestJunit t=new TestJunit();
        t.test();
    }
}
